<%--
  Created by IntelliJ IDEA.
  User: Tang'ya'kang
  Date: 2023/5/19
  Time: 22:45
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>订单详情</title>
</head>
<%@ include file="head.jsp"%>
<body>
<div class="card">
    <div class="card-body">
        <h5 class="card-title" align="center">订单详情</h5>
        <div class="card-body">
            <table class="table table-hover">
                <thead>
                <tr>
                    <th scope="col">#</th>
                    <th scope="col">商品名称</th>
                    <th scope="col">数量</th>
                    <th scope="col">单价</th>
                    <th scope="col">金额</th>
                    <th scope="col">状态</th>
                </tr>
                </thead>
                <tbody>
                <c:forEach items="${requestScope.OrderItems}" var="item" varStatus="status">
                    <tr>
                        <th scope="row">${status.count}</th>
                        <td>${item.name}</td>
                        <td>${item.count}</td>
                        <td>${item.price}</td>
                        <td>${item.total_price}</td>
                        <c:if test="${item.status eq 0}"><td>未发货</td></c:if>
                        <c:if test="${item.status eq 1}"><td>已发货</td></c:if>
                        <c:if test="${item.status eq 2}"><td>已完成</td></c:if>
                    </tr>
                </c:forEach>
                </tbody>
            </table>
        </div>

    </div>
    <%@ include file="Foot.jsp"%>
</div>
</body>
</html>
